home *** CD-ROM | disk | FTP | other *** search
/ The CDPD Public Domain Collection for CDTV 4 / CDPD_IV.bin / e / mailinglists / amigae.0294feb.archive / 000120_donews!crash!fr…leton.ca!ao443_Tue, 1 Mar 94 01:43:55 PST.msg < prev   
Internet Message Format  |  1994-05-26  |  2KB

  1. Received: by bkhouse.cts.com (V1.17-beta/Amiga)
  2.       id <1y1n@bkhouse.cts.com>; Tue, 1 Mar 94 01:43:55 PST
  3. Received: from crash by donews.cts.com with uucp
  4.     (Smail3.1.28.1 #18) id m0pbI0e-0001vfC; Mon, 28 Feb 94 16:08 PST
  5. Received: from freenet-news.carleton.ca by crash.cts.com with smtp
  6.     (Smail3.1.28.1 #18) id m0pbI0F-000023C; Mon, 28 Feb 94 16:07 PST
  7. Received: from  by freenet-news.carleton.ca (4.1/SMI-4.0)
  8.     id AB08148; Mon, 28 Feb 94 19:08:27 EST
  9. Received: from localhost (ao443@localhost) by freenet.carleton.ca (8.6.4/8.6.4) id NAA10948; Mon, 28 Feb 1994 13:38:01 -0500
  10. Date: Mon, 28 Feb 1994 13:38:01 -0500
  11. Message-Id: <199402281838.NAA10948@freenet.carleton.ca>
  12. Reply-To: ao443@freenet.carleton.ca
  13. From: ao443@freenet.carleton.ca (Jason Maskell)
  14. To: AmigaE@bkhouse.cts.com
  15. Subject: Re: 1 or 2 beginner questions
  16.  
  17. (wow, 1 or 2?)
  18. >1. What is the best way to clear a window. I've used ClearScreen, but it
  19.     Well, in Intuition borders etc are part of the window, and so can
  20. be cleared, so this is a little trickier than in another high level such
  21. as GFA or Amos.
  22.     There's two ways you can do this, one requires some playing
  23. around, and one is just real simple. The simple one first.
  24.     Call SetRast(<your rastport>,<bg color>), and then just
  25. RefreshWindowFrame(<window>), I believe. This is NOT the nice way to do
  26. it, but it will work.
  27.     The other way is pretty easy, but has a higher function count. Use
  28. LockPubScreen() to find the size of the title bar.(In screen.barheight)
  29. Get the window size data from teh window structure, and calculate the
  30. actual window area from that and the title bar size. Then use EraseRect()
  31. to nuke the relevant data. This is very vague, and I can post An example
  32. if needed. 
  33.  
  34.     Gotta log off and save.. Answer the rest in another message.
  35.  
  36.  
  37. --
  38. 'You see son, if this were Star Trek, we'd be negotiating with this Kobold.'
  39. - Unknown Angband Player